package com.ask.dao;

import org.springframework.stereotype.Repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.ask.model.User;



//In a typical Java application, you write a class that implements CustomerRepository and craft the queries yourself. What makes Spring Data MongoDB so useful is the fact that you need not create this implementation. Spring Data MongoDB creates it on the fly when you run the application.
@Repository
public interface UserMongoRepository extends MongoRepository<User, Long> {
//     Question findByScode(String scode);
    public User findByEmail(String email);
    public User findByPassword(String password);

}

